

        function connectServer(){
           var socket = io.connect("http://127.0.0.1:9960");
           console.log("connceting socket server");
           socket.on("connect",function() {
               console.log("socket server connected");
           });
           socket.on("disconnect",function(){
               console.log("socket server disconnected")
           });
           socket.on("error",function(){
               console.log("socket server connect error");
           });
           socket.on("data",function(data){
                console.log(data);
           })
        }
        connectServer();
        console.log("data socket js loaded");
        